<div class="left">
	<h2 class="titles"><?php __('最新活动');?></h2>
	<table  class="post-list">
	<tr>
			<th>活动名称</th>
			<th>创建时间</th>
			<th>归属小组</th>
			<th>开始时间</th>
			<th>结束时间</th>
	</tr>
	<?php

	foreach ($events as $event):

	?>
	<tr>
		<td><?php echo $this->Html->link(__( $event['Event']['name'], true), array('action' => 'view', $event['Event']['id']));  ?>&nbsp;</td>
		<td><?php echo $event['Event']['created']; ?>&nbsp;</td>
		<td><?php echo $event['Group']['name']; ?>&nbsp;</td>
		<td><?php echo $event['Event']['begins']; ?>&nbsp;</td>
		<td><?php echo $event['Event']['ends']; ?>&nbsp;</td>

	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%', true)
	));
	?>	</p>

	<div class="paging">
		<?php echo $this->Paginator->prev('<< ' . __('previous', true), array(), null, array('class'=>'disabled'));?>
	 | 	<?php echo $this->Paginator->numbers();?>
 |
		<?php echo $this->Paginator->next(__('next', true) . ' >>', array(), null, array('class' => 'disabled'));?>
	</div>
</div>
<div class="right">
<?php echo $this->Html->link(__('创建新活动', true), array('action' => 'add'),array('class'=>'btn')); ?></li>
</div>